package com.xscha.soyue.common.core.property;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 * Title: SoyApplicationProperties Description: dust配置
 *
 * @author Vondser
 * @version V2024.1.0
 */
@Getter
@Setter
@ConfigurationProperties(prefix = SoyApplicationProperties.PATH)
public class SoyApplicationProperties {

	public static final String PREFIX = "soyue";

	public static final String PATH = PREFIX;

	/**
	 * 当前的host https://www.xscha.com
	 */
	private String host;

	/**
	 * 配置应用程序时间格式化
	 */
	private final DateTimeFormat dateTimeFormat = new DateTimeFormat();

	@Getter
	@Setter
	public static class DateTimeFormat {

		private String dateFormat = "yyyy-MM-dd";

		private String timeFormat = "HH:mm:ss";

		private String dateTimeFormat = "yyyy-MM-dd HH:mm:ss";

	}

}
